package com.jikedaquan.game.jwt.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jikedaquan.game.jwt.entity.Message;
import com.jikedaquan.game.jwt.mapper.MessageMapper;
import com.jikedaquan.game.jwt.service.MessageService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 消息记录 服务实现类
 * </p>
 *
 * @author jiake
 * @since 2019-10-31
 */
@Service
public class MessageServiceImpl extends ServiceImpl<MessageMapper, Message> implements MessageService {

    @Override
    public void findWorldSpeak(Page<Message> page) {
        QueryWrapper<Message> queryWrapper = new QueryWrapper<Message>()
                .eq("type",2)
                .isNull("status");
        baseMapper.selectPage(page,queryWrapper);
    }
}
